<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>无穷大符号</title>
</head>

<body>
    <!--
        作者：放弃懒惰
        链接：https://www.zhihu.com/question/40149352/answer/3123033666
        来源：知乎
        著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。
    -->
    <div class="infinity"></div>
    <style>
        .infinity {
            position: relative;
            display: block;
            width: 150px;
            height: 100px;
            box-sizing: content-box;
        }

        .infinity:before,
        .infinity:after {
            position: absolute;
            top: 0;
            left: 0;
            width: 30px;
            height: 30px;
            content: "";
            border: 20px solid rgb(41, 7, 196);
            border-radius: 50px 50px 0 50px;
            box-sizing: content-box;
            transform: rotate(-45deg);
        }

        .infinity:after {
            left: auto;
            right: 0;
            border-radius: 50px 50px 50px 0;
            transform: rotate(45deg);
        }
    </style>
</body>

</html>